package com.project.xsf.service.impl;

import com.project.xsf.entity.MProcedureModuling;
import com.project.xsf.mapper.MProcedureModulingMapper;
import com.project.xsf.service.MProcedureModulingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
@Service
public class MProcedureModulingImpl implements MProcedureModulingService {
    @Autowired
    private MProcedureModulingMapper mProcedureModulingMapper;
    @Override
    public int insertSelective(MProcedureModuling record) {
        return mProcedureModulingMapper.insertSelective(record);
    }

    @Override
    public List<MProcedureModuling> queryMProcedureModulingByPId(Integer pId) {
        return mProcedureModulingMapper.queryMProcedureModulingByPId(pId);
    }

    @Override
    public List<MProcedureModuling> queryMProcedureModulingByPIdAndProduct(Integer pId, String productId) {
        return mProcedureModulingMapper.queryMProcedureModulingByPIdAndProduct(pId, productId);
    }
}
